<?php
 
namespace models\entities;
 
/**
 * @Entity(repositoryClass="models\repositories\JenisDokumenRepository")
 * @Table(name="jenis_dokumen")
 */
class JenisDokumen {
	/**
 * @Id
 * @Column(name="id", type="integer", length=11, unique=true, nullable=false)
 */
	protected $id;

	/**
 * @Column(name="nama", type="string", length=45)
 */
	protected $nama;

	/**
 * @Column(name="timestamp", type="datetime", nullable=true)
 */
	protected $timestamp; 

	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setNama($nama)
	{
	    $this->nama = $nama;
	}
 
	public function getNama()
	{
	    return $this->nama;
	}
	
	public function setTimestamp($timestamp)
    {
        // will NOT be saved in the database
        $this->timestamp = new \DateTime("now");
    }
    
	public function getTimestamp()
    {
        return $timestamp;
    }
}